
#	基础镜像
FROM  alpine:3.20



# Install cURL
RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main\n\
https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/community" > /etc/apk/repositories && \
	apk --update add curl bash openjdk8-jre && \
	rm -rf /var/cache/apk/* && \
	apk add fontconfig && \
	apk add --update ttf-dejavu && \
	fc-cache --force


#	复制文件
COPY ./tomcat /opt/tomcat/
COPY ./wcps.learn.install8(1.2.0-1.3.6).u3/webs /opt/tomcat/webapps/
COPY ./jdbc.properties /opt/tomcat/webapps/ROOT/WEB-INF/classes/
COPY ./jdbc.properties /opt/tomcat/webapps/wts/WEB-INF/classes/
COPY ./start.sh /



# Set environment

#	配置参数
ENV TZ=Asia/Shanghai
ENV mysqlip=localhost mysqlpassword=123456
VOLUME ["/etc/nginx/logs"]
VOLUME ["/resource/file/"]

#	暴露端口

EXPOSE 8986


ENTRYPOINT [ "/bin/sh","/start.sh" ] 